package com.lyy.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyy.yygh.model.order.OrderInfo;
import com.lyy.yygh.vo.order.OrderCountQueryVo;
import com.lyy.yygh.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    //保存订单
    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrder(String orderId);

    /**
     * 分页列表
     */
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //取消订单
    Object cancelOrder(Long orderId);

    //定时任务
    void patientTips();

    /**
     * 订单统计
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

    /**
     * 科室统计
     */

    Map<String, Object> getHosnameMap();
    /**
     * 确认取号
     * @param hoscode
     * @param hosRecordId
     * @return
     */
    Boolean confirmGetNumber(String hoscode, String hosRecordId);

    Map<String,Object> show(Long orderId);
}
